<div id="preject">
    <div id="table">
        <table>
            <tr><th>序号</th> <th>姓名</th> <th>部门</th>  <th>电话</th> <th>
                {present name="$all"}
                <a href="{:url('add')}">添加管理员</a>
                {/present}
            </th>  <th></th></tr>
            {foreach $admin as $k=>$v}
            <tr><td>{$admin->currentPage()*30-30+$k+1}</td> <td>{$v.name}</td>  <td>{$v.apartment}</td>   <td>{$v.phone}</td>    <td><a  href="{:url('changepsw')}?id={$v.id}">修改密码</a></td> <td><a href="{:url('deleteadmin')}?id={$v.id}" onclick="javascript:if(confirm('确定删除报名吗？')){return true;}return false;">删除</a></td>
                <td></td> </tr>
            {/foreach}
        </table>
    </div>

</div>